package com.hhf.feiojapiservice.client;

import com.hhf.feiojapiservice.config.DefaultFeignConfig;
import com.hhf.feiojapiservice.fallback.JudgeClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author hhf
 * @Date 2024/11/3
 * @Description
 */
@FeignClient(name = "feioj-judge-service",fallbackFactory = JudgeClientFallbackFactory.class,configuration = DefaultFeignConfig.class)
public interface JudgeFeignClient {

//    judgeService.doJudge(questionSubmitId);

    @GetMapping("/judge")
    void doJudge(@RequestParam("questionSubmitId") long questionSubmitId);


}
